/* Layout */
import Layout from '../views/layout/Layout'
const _import = require('./_import_' + process.env.NODE_ENV)

const operationalRoutes= [
  {
    path: '/operational',
    component: Layout,
    // meta: { roles: [] }, // you can set roles in root nav
    redirect: 'operational-real-time',
    name: 'operational',
    meta: {
      title: '运营数据',
      icon: 'dashboard',
      roles: []
    },
    children: [
      {
        path: 'operational-real-time',
        name: 'operational-real-time',
        component: _import('operational/realTime/index'),
        meta: {
          title: '实时统计',
          roles: ['virtual']
        }
      },
      {
        path: 'operational-data',
        name: 'operational-data',
        component: _import('operational/trend/index'),
        meta: {
          title: '数据统计',
          roles: ['virtual']
        }
      },
      {
        path: 'operational-first-data',
        name: 'operational-first-data',
        component: _import('operational/firstData/index'),
        meta: {
          title: '首存统计',
          roles: []
        }
      },
      {
        path: 'operational-retention',
        name: 'operational-retention',
        component: _import('operational/remain/index'),
        meta: {
          title: '留存率分析',
          roles: []
        }
      },
      {
        path: 'operational-transform',
        name: 'operational-transform',
        component: _import('operational/transform/index'),
        meta: {
          title: '转化率分析',
          roles: []
        }
      },
      {
        path: 'operational-register',
        name: 'operational-register',
        component: _import('operational/register/index'),
        meta: {
          title: '注册率分析',
          roles: []
        }
      },
      {
        path: 'operational-device',
        name: 'operational-device',
        component: _import('operational/platform/index'),
        meta: {
          title: '操作端占比',
          roles: []
        }
      },
      {
        path: 'operational-capital',
        name: 'operational-capital',
        component: _import('operational/finance/index'),
        meta: {
          title: '金流分析',
          roles: []
        }
      },
      {
        path: 'operational-traffic',
        name: 'operational-traffic',
        component: _import('operational/flow/index'),
        meta: {
          title: '流量统计分析',
          notLog: true,
          roles: []
        }
      },
      {
        path: 'operational-online',
        name: 'operational-online',
        component: _import('operational/onlineUser/index'),
        meta: {
          title: '当前在线用户',
          roles: []
        }
      },
      // {
      //   path: 'operational-domain',
      //   name: 'operational-domain',
      //   component: _import('operational/domainTest/index'),
      //   meta: {
      //     title: '域名检测',
      //     roles: []
      //   }
      // },

    ]
  }
];

export default operationalRoutes
